com.borneo.ftp.xml
Class XmlMgr

java.lang.Object
  |
  +--com.borneo.ftp.xml.XmlMgr

public class XmlMgr
extends java.lang.Object


Field Summary
static ExchangeSession myExchangeSessions
           
static Ftpwork myFtpWork
           
static java.io.File xmlnew
           
 
Constructor Summary
XmlMgr()
          Creates new XmlMgr
 
Method Summary
static void accessTrees(javax.servlet.http.HttpServletRequest req)
          sucked in from the SAXB examples, this would allow access to the XML via the run time objects resulting from the call to buildTrees
static void buildTrees()
          according to the samples for SAXB, this method is responsible for parsing and for instantiating the run time objects representing the XML content.
 Ftpwork getFtpwork()
           
static void marshalTrees()
          write the object trees back out to XML file including additions to the trees that result from new properties on stats and properties from the current job.
static java.lang.String marshalTreesJSP()
           
static void marshalTreesJSP(javax.servlet.http.HttpServletResponse res)
           
 void setFtpwork(Ftpwork arg)
           
static void validateTrees()
          used prior to writing out xml from trees that were updated following the parse operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFtpWork

public static Ftpwork myFtpWork

myExchangeSessions

public static ExchangeSession myExchangeSessions

xmlnew

public static java.io.File xmlnew
Constructor Detail

XmlMgr

public XmlMgr()
Creates new XmlMgr
Method Detail

setFtpwork

public void setFtpwork(Ftpwork arg)

getFtpwork

public Ftpwork getFtpwork()

buildTrees

public static void buildTrees()
                       throws java.lang.Exception
according to the samples for SAXB, this method is responsible for parsing and for instantiating the run time objects representing the XML content. All classes in "com.borneo.ftp.xml" were generated by the SAXB compiler.
Throws:
java.lang.Exception - follow the example in SAXB documentation

accessTrees

public static void accessTrees(javax.servlet.http.HttpServletRequest req)
                        throws java.lang.Exception
sucked in from the SAXB examples, this would allow access to the XML via the run time objects resulting from the call to buildTrees
Throws:
java.lang.Exception - from the sample programs

validateTrees

public static void validateTrees()
                          throws java.lang.Exception
used prior to writing out xml from trees that were updated following the parse operations. Must re-validate the trees before new XML is generated from trees.
Throws:
java.lang.Exception - from the sample application

marshalTrees

public static void marshalTrees()
                         throws java.lang.Exception
write the object trees back out to XML file including additions to the trees that result from new properties on stats and properties from the current job.
Throws:
java.lang.Exception - from the sample application

marshalTreesJSP

public static java.lang.String marshalTreesJSP()

marshalTreesJSP

public static void marshalTreesJSP(javax.servlet.http.HttpServletResponse res)
                            throws java.lang.Exception